const path = require('path');
// 这里 是通过node的方法拿到当前项目的根路径
const resolve = dir => path.resolve(__dirname,dir);

module.exports= {
	webpack:{
		alias:{
			"@":resolve("src"),
			"assets":resolve("src/assets"),
			"common":resolve("src/common"),
			"components":resolve("src/components"),
			"network":resolve("src/network"),
			"pages":resolve("src/pages"),
			"store":resolve("src/store"),
			"utils":resolve("src/utils"),
		}
	}
}
